        <div class="head">
            <div class="info">
                <a href="{:$smarty.const.ROOT_DIR}">本站首页</a>
                <a onclick="addFavor('{:$smarty.const.ROOT_DIR}', '{:$i->Load->var.siteName}');return false;" href="#">加入收藏</a>
            </div>
            <div class="logo"><a href="{:$smarty.const.ROOT_DIR}"><img src="{:$smarty.const.PUBLIC_DIR}/common/image/logo.gif" /></a></div>
        </div><!--/head-->
        <div class="nav">
        	<form id="search" action="{:$smarty.const.ROOT_DIR}/index.php/data/search" method="get">关键词：<input size="20" value="{:$i->keyWord}" name="k" />
            <a href="#@" onclick="document.getElementById('search').submit();">搜索</a>
            </form>
            <div class="menu">
            	{:category}
                <a href="{:$item->url}">{:$item->name}</a>
                {:/category}
            </div>
        </div>
        <script language="javascript">
			function addFavor(sURL, sTitle) 
			{ 
				try 
				{ 
					window.external.addFavorite(sURL, sTitle); 
				} 
				catch (e) 
				{ 
					try 
					{ 
						window.sidebar.addPanel(sTitle, sURL, ""); 
					} 
					catch (e) 
					{ 
						alert("加入收藏到浏览器失败，请使用Ctrl+D进行添加"); 
					} 
				} 
			}
         </script>